home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7304 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GetSysTime() accuracy
  5. Date: 14 Apr 1996 11:37:32 +0200
  6. Organization: dis-
  7. Distribution: inet
  8. Message-ID: <4kqh0s$gid@serpens.rhein.de>
  9. References: <4khkab$7p2@toad.stack.urc.tue.nl> <jdj91fzso39.fsf@hyppynaru.cs.hut.fi>
  10. NNTP-Posting-Host: serpens.rhein.de
  11.  
  12. oahvenla@hyppynaru.cs.hut.fi (Osma Ahvenlampi) writes:
  13.  
  14. >The precision of GetSysTime() is 1 microsecond, although the accuracy
  15. >may be off by several orders of magnitude, depending on how well
  16. >adjusted the CIA timers and the clock frequency of the machine really
  17. >are.
  18.  
  19. Ugh.. It rather depends on the software :) The system time is derived
  20. from the 50Hz/60Hz clock and thus just has a resolution of 20 or 16.6ms.
  21. The increment of the microseconds value is done so that subsequent calls
  22. to GetSysTime() always generate an increasing value.
  23.  
  24. >I don't think you will gain any significant increase of accuracy by
  25. >using the CIA directly. GetSysTime() is about as low-level a call as I
  26. >can imagine.
  27.  
  28. ReadEClock() is really low-level, it also runs with E-Clock precision
  29. (of about 1.4 microseconds).
  30.  
  31. Regards,
  32. -- 
  33.                                 Michael van Elst
  34.  
  35. Internet: mlelstv@serpens.rhein.de
  36.                                 "A potential Snark may lurk in every tree."
  37.